import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'entrust_setter',
    redirect: "/index",
  },
  {
    path: '/index',
    name: 'index',
    component: (resolve) => require(['../views/index'], resolve)
  },
  {
    path: '/other',
    name: 'Other',
    component: (resolve) => require(['../views/other'], resolve)
  },
]

const router = new VueRouter({
  mode: 'history',
  base: '/entrust_setter/',
  routes
})

export default router
